Skip to content

Conversation

@bpintea
Copy link
Contributor

@bpintea bpintea commented Apr 15, 2025

This moves originalTypes() from Attribute to FieldAttribute, since only a FieldAttribute (and its subclasses) can refer to a field with multiple types.

Addresses: https://github.com/elastic/elasticsearch/pull/124913/files#r1996239008

This moves originalTypes() from Attribute to FieldAttribute, since only
a FieldAttribute (and its subclasses) can refer to a field with multiple
types.
@bpintea bpintea requested review from costin and nik9000 April 15, 2025 11:12
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Apr 15, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@Nullable
public List<String> originalTypes() {
return null;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to move it, maybe just put it in UnsupportedAttribute. I don't like that either, but it feels better than this in the middle spot.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we wanted to keep it on FieldAttribute level as we might want to create one (or subtype) from a MultiTypeEsField at some point. But anyways I pushed it further down now and we can revise this if/when needed.

@bpintea bpintea added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Apr 17, 2025
@elasticsearchmachine elasticsearchmachine merged commit bad35ed into elastic:main Apr 22, 2025
17 checks passed
@bpintea bpintea deleted the refactor/originalTypes_to_fieldattr branch April 22, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants